using UnityEngine;

public class GlobalObjects : MonoBehaviour
{
    public GameObject[] globalObjects;

    private void Awake()
    {
        foreach (GameObject go in globalObjects)
        {
            DontDestroyOnLoad(go);
        }
    }
}
